package com.xiyi.shouxin.entity.user;

import java.util.Date;

import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import lombok.Data;

@Data
@Table(value = "user")
public class User {
    @Id
    @Column(value = "id")
    private Long id;
    /*
     * 管理员
     */
    @Column(value = "adminId")
    private Long adminId;
    @Column(value = "device_id")
    private String deviceId;

    // @Column(value = "password")
    private String password;

    /*
     * 账户
     */
    @Column(value = "account")
    private String account;
    /*
     * 昵称
     */
    @Column(value = "nickname")
    private String nickName;
    /*
     * 真实姓名
     */
    @Column(value = "realname")
    private String realName;
    /*
     * 头像
     */
    @Column(value = "avatar")
    private String avatar;
    /*
     * 用户的性别，值为1时是男性，值为2时是女性，值为0时是未知
     */
    @Column(value = "sex")
    private Integer sex;
    /*
     * 手机账户
     */
    @Column(value = "phone")
    private String phone;
    /*
     * 学号
     */
    @Column(value = "student_id")
    private String studentId;
    /*
     * 省份
     */
    @Column(value = "province")
    private String province;
    /*
     * 市
     */
    @Column(value = "city")
    private String city;
    /*
     * 区
     */
    @Column(value = "area")
    private String area;
    /*
     * 用户token
     */
    @Column(value = "token")
    private String token;
    @Column(value = "openid")
    private String openid;
    /*
     * 小程序用户会话密匙
     */
    @Column(value = "session_key")
    private String sessionKey;
    /*
     * 是否完善个人信息 0未完善1完善
     */
    @Column(value = "is_bind")
    private Integer isBind;
    /*
     * 是否答题 0未答题1已答过
     */
    @Column(value = "is_answer")
    private Integer isAnswer;
    @Column(value = "created_at")
    private Date createdAt;
    @Column(value = "updated_at")
    private Date updatedAt;
    @Column(value = "deleted_at")
    private Date deletedAt;

    @Column(value = "feedback")
    private String feedback;

}
